import {
    createApp
} from 'vue'

import ElementPlus from 'element-plus'
import locale from 'element-plus/lib/locale/lang/zh-cn'
import "element-plus/dist/index.css"
import '@/assets/styles/index.scss'
import elementIcons from '@/components/icons/elementIcon.js'

import App from './App.vue'
import store from './store'         // 缓存
import router from "./router";      // 路由
import directive from './directive' // 封装自定义指令
import plugins from './plugins' // 封装统一弹框提示
const app = createApp(App)

app.use(router)
app.use(store)
app.use(plugins)
directive(app)
app.use(elementIcons)
app.use(ElementPlus, {
    locale: locale,
    // 支持 large、default、small
    size: 'default'
})
import '@/utils/flexble'
app.mount('#app')